package com.hyst.repository;

import java.util.List;

import com.hyst.domain.PurchaseCourse;
import com.hyst.domain.TeacherPeriod;
import com.hyst.domain.TeacherPeriodUsed;

import tk.mybatis.mapper.common.Mapper;

public interface TeacherPeriodUsedMapper extends Mapper<TeacherPeriodUsed> {

	List<TeacherPeriodUsed> getPeriodUsed(TeacherPeriodUsed teacherPeriodUsed);

	/**
	 * 批量更新教师课程安排为占用（正式课排课后更新）
	 * 
	 * @Description:
	 * @param purchaseCourse
	 * @return Integer
	 */
	Integer setUsed(PurchaseCourse purchaseCourse);

	void deletePeriod(TeacherPeriodUsed teacherPeriodUsed);

	List<TeacherPeriod> selectPeriod(TeacherPeriod teacherPeriodUsed);

	List<TeacherPeriodUsed> getPeriodUsedFormal(TeacherPeriodUsed teacherPeriodUsed);

	void updateTime(TeacherPeriod TeacherPeriod);
}
